<?php

	class Industry extends AppModel {
		var $name = 'Industry';
		var $useTable = 'industries';
		var $displayName = 'name';
		
		var $hasAndBelongsToMany = array(
			'Shop' => array(
				'className' => 'Shop',
				'joinTable' => 'industries_shops',
				'foreignKey' => 'industry_id',
				'associationForeignKey' => 'shop_id'
			),
			'Term' => array(
				'className' => 'Term',
				'joinTable' => 'industries_terms',
				'foreignKey' => 'industry_id',
				'associationForeignKey' => 'term_id'
			)
		);
	}
